package com.lx.demo01;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

//实现日志后置增强
public class AfterLog implements AfterReturningAdvice {

    //returnValue：返回值
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("执行了" +method.getName()+"方法，返回值：" + returnValue);
    }
}
